package com.FileClient;

import java.io.*;
import java.util.*;


public class Main {

    public static void main(String[] args) throws Exception{
        FileRemote fr = new FileRemote(Tools.getValueByKey("FileServerIP"), Integer.parseInt(Tools.getValueByKey("FileServerPort")));
        if(args[0].equals("upload")) {
            fr.upload(args[1]);
        }else if(args[0].equals("download")) {
            fr.download(args[1]);
        }else if(args[0].equals("delete")) {
            fr.delete(args[1]);
        }else {
            System.out.println("Error args");
        }
    }
}
